package com.yan.watch.jdk;


import java.util.Observable;
import java.util.Observer;

@SuppressWarnings("all")
public class WeChatUser implements Observer {
    private String name;

    public WeChatUser(String name) {
        this.name = name;
    }

    @Override
    public void update(Observable o, Object arg) {
        System.out.println("微信用户" + name + "收到消息：\n" + arg);
    }
}
